<div class="responses view">
<h2><?php  echo __('Response'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($response['Response']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('SurveyResponse'); ?></dt>
		<dd>
			<?php echo $this->Html->link($response['SurveyResponse']['id'], array('controller' => 'surveyresponses', 'action' => 'view', $response['SurveyResponse']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Response'), array('action' => 'edit', $response['Response']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Response'), array('action' => 'delete', $response['Response']['id']), null, __('Are you sure you want to delete # %s?', $response['Response']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Responses'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Response'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List SurveyResponses'), array('controller' => 'surveyresponses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New SurveyResponse'), array('controller' => 'surveyresponses', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List ChoiceQuestionResponses'), array('controller' => 'choicequestionresponses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New ChoiceQuestionResponse'), array('controller' => 'choicequestionresponses', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List NumericResponses'), array('controller' => 'numericresponses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New NumericResponse'), array('controller' => 'numericresponses', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List TextResponses'), array('controller' => 'textresponses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New TextResponse'), array('controller' => 'textresponses', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related ChoiceQuestionResponses'); ?></h3>
	<?php if (!empty($response['ChoiceQuestionResponse'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('ChoiceQuestion Id'); ?></th>
		<th><?php echo __('ChoiceQuestionChoice Id'); ?></th>
		<th><?php echo __('Response Id'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($response['ChoiceQuestionResponse'] as $choicequestionresponse): ?>
		<tr>
			<td><?php echo $choicequestionresponse['id']; ?></td>
			<td><?php echo $choicequestionresponse['choicequestion_id']; ?></td>
			<td><?php echo $choicequestionresponse['choicequestionchoice_id']; ?></td>
			<td><?php echo $choicequestionresponse['response_id']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'choicequestionresponses', 'action' => 'view', $choicequestionresponse['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'choicequestionresponses', 'action' => 'edit', $choicequestionresponse['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'choicequestionresponses', 'action' => 'delete', $choicequestionresponse['id']), null, __('Are you sure you want to delete # %s?', $choicequestionresponse['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New ChoiceQuestionResponse'), array('controller' => 'choicequestionresponses', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related NumericResponses'); ?></h3>
	<?php if (!empty($response['NumericResponse'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Response Id'); ?></th>
		<th><?php echo __('Response Value'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($response['NumericResponse'] as $numericresponse): ?>
		<tr>
			<td><?php echo $numericresponse['id']; ?></td>
			<td><?php echo $numericresponse['response_id']; ?></td>
			<td><?php echo $numericresponse['response_value']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'numericresponses', 'action' => 'view', $numericresponse['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'numericresponses', 'action' => 'edit', $numericresponse['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'numericresponses', 'action' => 'delete', $numericresponse['id']), null, __('Are you sure you want to delete # %s?', $numericresponse['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New NumericResponse'), array('controller' => 'numericresponses', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related TextResponses'); ?></h3>
	<?php if (!empty($response['TextResponse'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Response Id'); ?></th>
		<th><?php echo __('Response Value'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($response['TextResponse'] as $textresponse): ?>
		<tr>
			<td><?php echo $textresponse['id']; ?></td>
			<td><?php echo $textresponse['response_id']; ?></td>
			<td><?php echo $textresponse['response_value']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'textresponses', 'action' => 'view', $textresponse['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'textresponses', 'action' => 'edit', $textresponse['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'textresponses', 'action' => 'delete', $textresponse['id']), null, __('Are you sure you want to delete # %s?', $textresponse['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New TextResponse'), array('controller' => 'textresponses', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
